package com.example.springbootdemo.impot;

import org.springframework.context.annotation.ImportSelector;
import org.springframework.core.type.AnnotationMetadata;

// 该导入适用于，配置文件中读取并批量导入bean
public class MySelectImport implements ImportSelector {
    @Override
    public String[] selectImports(AnnotationMetadata importingClassMetadata) {
        importingClassMetadata.getAnnotations();

        return new String[]{"com.example.springbootdemo.impot.MyImportDemo"};
    }
}
